package com.ygj.attendance.service;

import java.text.ParseException;
import java.util.List;

import org.springframework.stereotype.Service;

import com.base.common.persistent.model.AttendanceRecord;
import com.cjy.common.bean.Files;

@Service("attendanceService")
public interface AttendanceService {

	/**
	 * 考勤
	 * 
	 * @param attendanceRecord
	 * @param basePath
	 * @param files
	 * @param type 
	 * @param compoundsId 
	 * @return
	 */
	int attendance(AttendanceRecord attendanceRecord, String basePath,
				   Files files, int type, int compoundsId);

	/**
	 * 根据时间和员工id查询签到记录
	 * 
	 * @param compoundsId
	 * 
	 * @param id
	 * @param queryTime
	 * @return
	 * @throws ParseException
	 */
	List<AttendanceRecord> queryAttendanceRecordByMonth(int employeeId,
														int compoundsId, String queryTime) throws ParseException;

	Object manageQueryAttendanceRecord(int compoundsId, String queryTime) throws ParseException;
}
